package com.diorsunion.hedge.dal.repository.account;

import com.diorsunion.hedge.common.BaseRepository;
import com.diorsunion.hedge.dal.entity.account.Role;
import org.apache.ibatis.annotations.Param;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by harley-dog on 2016/5/12.
 */
@Resource
public interface RoleRepository extends BaseRepository<Role, Integer> {
    List<Role> findRolesByUserId(@Param("userId") Integer userId);
}
